package com.c611.smartclassroom.service;

import com.c611.smartclassroom.model.WorkOrder;

import java.util.List;

public interface WorkOrderService {

    /**
     * 添加工单的方法
     *
     * @return
     */
    //查询所有工单
    long queryWorkOrderCount();

    List queryWorkOrder(Integer page, Integer pageSize);

    //根据工单编号查询对应工单
    List<WorkOrder> queryByWorkOrderId(Integer worderid);

    //添加工单
    int addWorkOrder(WorkOrder workOrder);

    //删除工单
    int delWorkOrder(Integer wOrderID);

    //填写处理结果
    int saveWorkOrderResult(Integer wOrderID, String hResult);

    //查询处理结果
    String queryWorkOrderResult(Integer worderid);

    long queryWorkOrderCountByName(String name);

    List<WorkOrder> queryWorkOrderByName(Integer page, Integer pageSize, String name);
}

